<?php require_once(dirname(__FILE__)."/../config/config.php"); ?>
<?php
  $id=$_GET[id];
  $sql = "select * from zy_gift_delivery where id = '".$id."'";
 // echo $sql;
  $result = mysql_query($sql);
  $zy_gift_delivery = mysql_fetch_array($result);
  
 // print_r($info);
?>
<?php  
if($_SESSION['admin_name']=="")
{

	echo "<script>location.href='admin_login.php';</script>";
}
?>	
<form action="gift_delivery_action.php?action=update&id=<?php echo $zy_gift_delivery['id'];?> " method="post">
	   	<table width="320" border="0" align="center">
			<tr>
			<td align="right"> 礼品ID: </td>
			<td><input type="text" name="gift_id" value="<?php echo $zy_gift_delivery['gift_id'];?>"/></td>
			</tr>
			<tr>
			<td align="right"> 账号ID: </td>
			<td><input type="text" name="user_id" value="<?php echo $zy_gift_delivery['user_id'];?>"/></td>
			</tr>
			<tr>
			<td align="right"> 礼品状态: </td>
			<td><input type="text" name="gift_status" value="<?php echo $zy_gift_delivery['gift_status'];?>"/></td>
			</tr>
			<tr>
			<tr>
			<td align="right"> 兑换时间: </td>
			<td><input type="text" name="Conversiontime" value="<?php  echo $zy_gift_delivery['Conversiontime']?>" /></td>
			</tr>
			<tr>
			<td align="right"> 配送时间: </td>
			<td><input type="text" name="Deliverytime" value="<?php  echo $zy_gift_delivery['Deliverytime']?>" /></td>
			</tr>
			
				<td colspan="2" align="center">
						<input type="submit"   value="填写"/>&nbsp;&nbsp;
						
			</tr>
		</table>
		</form>